#include <iostream>
#include <vector>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <stdexcept>

#include "MyStack.h"

using namespace std;

using namespace MyStack;

int main(int argc, char **argv)
{
    int i;
    Stack myStack;

    i = 10;

    int data = 0;
    while(i--)
    {
        myStack.push(data);
        data++;
    }

    i = 0;
    while(i<10) {
        data = myStack.top();
        myStack.pop();
        cout << data << " " << endl;
        i++;
    }
}

